package com.wwg.threads.binghe.concurrent.executor.state;

public class ThreadJoinDemo {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 10; i++) {
            Thread t1 = new Thread(() -> System.out.println("t1"));
            t1.start();
            t1.join();
            Thread t2 = new Thread(() -> System.out.println("t2"));
            t2.start();
            Thread t3 = new Thread(() -> System.out.println("t3"));
            t3.start();
        }
    }
}
